<script type="text/javascript" src="/js/jquery-1.7.1.js"></script>
<script type="text/javascript" src="/js/jquery.form.js" ></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.18.custom.min.js" ></script>
<script type="text/javascript" src="/js/jquery.validate.min.js" ></script>
<script type="text/javascript" src="/js/jquery.blockUI.js" ></script>
<script type="text/javascript" src="/js/common.js" ></script>





<%--  jquery plug-in SetTing --%>

<script type="text/javascript" >

/*******************달력생성***********************/
var calendar = new Object();

calendar.makeCalender= function(val){
    $( "#"+val ).datepicker({
        showOn: "button",
        buttonImage: "/images/web/btn_c.gif",
        buttonImageOnly: true,
        dateFormat : 'yy-mm-dd',
        showButtonPanel : true,
        changeMonth :true,
        changeYear :true,
        showButtonPanel:true
    });
    $("img.ui-datepicker-trigger").attr("alt","calendar").css({'cursor':'pointer', 'margin-top':'3px','margin-left':'3px'});
    
};

/******************* jquery  blockUI ***********************/
$(document).ajaxStart($.blockUI).ajaxStop($.unblockUI);


</script>



<%-- /******************* jquery  validate setting ***********************/ --%>
<!-- http://docs.jquery.com/Plugins/Validation -->
<style type="text/css">
/* css설정   errorClass:error  <-옆에 붙음*/
input.errorLeft, textarea.errorLeft{   border:1px dashed red; } 
label.errorLeft{   margin-left:10px;   color:red; }

/* css설정   errorClass:error  <-하단에 붙음 기본값 class*/
input.error, textarea.error{   border:1px dashed red; }
label.error{   display:block;   color:red; }
</style>

<script type="text/javascript" >
// 벨류데이션 기본 메시지 설정  //한글은 깨짐
/* 
$.extend(jQuery.validator.messages,{
    required : "{0}:ok.",
    number   : "{0}:숫자만입력.",
    email : "e-mail형식으로 입력하세요.",
    minlength: '{0}글자이상입력',
    url   : "URL형식으로 입력하세요."
}); 
 */

$.validator.setDefaults({
	focusCleanup:true
//    onkeyup:false,
//    onclick:true,
//    onfocusout:true,
    
/*     highlight: function(element, errorClass) {
         $(element).fadeToggle();
    },
    showErrors:function(errorMap, errorList){
         if(this.numberOfInvalids()) { // 에러가 있을 때만..
         alert(errorList[0].message);
         };
     } */
}); 
/******************* 필요시 밑으로 추가 ***********************/





</script>
